//
//  RecordRecommendTableViewCell.swift
//  TianTianBiTing
//
//  Created by Gox mac 2 on 2019/3/12.
//  Copyright © 2019 Gox_WallyDiao. All rights reserved.
//

import UIKit
protocol RecordRecommendTableViewCellDelegate:NSObjectProtocol {
    func collectActionDel(cell:UITableViewCell)
}

class RecordRecommendTableViewCell: UITableViewCell {
    var delegate:RecordRecommendTableViewCellDelegate?
    @IBOutlet weak var leftImageView: UIImageView!
    @IBOutlet weak var titleLabel: UILabel!
    @IBOutlet weak var desLabel: UILabel!
    @IBOutlet weak var newLabel: UILabel!
    @IBOutlet weak var listenLabel: UILabel!
    @IBOutlet weak var tolLabel: UILabel!
    @IBOutlet weak var collectBtn: UIButton!
    @IBOutlet weak var collectImage: UIImageView!
    @IBAction func collectAction(_ sender: Any) {
        delegate?.collectActionDel(cell: self)
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
        setUI()
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
    func setUI() {
        self.isUserInteractionEnabled = true
        self.leftImageView.layer.cornerRadius = 3
        self.leftImageView.layer.masksToBounds = true
    }
    
}
